package com.spring.demo.controller;


import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

import com.spring.demo.mvc.StringEscapeEditor;


public class BaseController {

    @InitBinder
    public void initBinder(WebDataBinder binder) {
    	binder.registerCustomEditor(String.class, new StringEscapeEditor());
    	//binder.registerCustomEditor(Date.class, new DateTypeEditor());
    }
	
}
